#include "proxy/conn/proxy_server.h"

namespace proxy {

  LocalHttpProxyServer::LocalHttpProxyServer(
    std::string bind_addr, uint16 bind_port, int thread_num)
    :TcpServer(bind_addr, bind_port, thread_num){
  }

  LocalHttpProxyServer::~LocalHttpProxyServer(){
  
  }

  void LocalHttpProxyServer::OnNewConnect(TcpAccpetServer::Ptr accpet_server,
    socket_ptr connect){
    HttpConn::Ptr http_conn = HttpConn::CreateHttpConn(connect->get_io_service(),
      connect, flow_instance());
    http_conn->Start();
  }
} // namespace proxy